<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">

<html>
  
  <head>    
    <title>How to add/edit/delete Layers in SMG1</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <link href="../../styles.css" rel="stylesheet">
    <link rel="icon" href="../../images/icon.png">
	</head>

	<body>

    <div id="top">
      <h1>How to add/edit/delete Layers in SMG1</h1> 
    </div>
			
    <div id="hot-links">
      <h2>Direct links</h2>
      <hr>
      <ol>
        <li><a href="../../index.html">Introduction</a></li>
        <li><a href="../tutorials.html">Tutorials</a></li>
        <li><a href="../resources.html">Resources</a></li>
      </ol>
    </div>
			
    <div id="main">

			<h2>Contents</h2>
			<hr>
      <ol>
        <li><a href="#tools">Required tools</a></li>
        <li><a href="#layer-zone-scenario">About Layers, Zones and Scenarios</a></li>
        <li><a href="#steps">Steps</a></li>
      </ol>
      
      <br>

			<hr id="tools">
			<h2>Required tools</h2>
			<hr>
      <p>Go to <a href="../resources.html">Resources</a> for download links.</p>        
      <ul>
        <li>Whitehole Despag</li>
        <li>Whitehole for SMG1</li>
        <li>WiiExplorer</li>
        <li>Wiimm's ISO Tools (to get your SMG1 dump)</li>
      </ul>

      <br>

			<hr id="layer-zone-scenario">
			<h2>About Layers, Zones and Scenarios</h2>
			<hr>

      <p> <b>Layers</b> serve as a way to group objects so they can only be shown on a <b>Zone</b> of a <b>Galaxy</b> in a certain <b>Scenario</b>. They can also be used to <b>categorize objects in a planet</b> so you can <b>edit objects separately</b> from other objects. They have a name that starts with <code>Layer</code> and ends with a <b>letter</b> (examples are <code>LayerA</code>, <code>LayerB</code>, <code>LayerC</code>, <b>etc.</b>).</p>
      
      <p><b>Zones</b> are a higher level of object grouping. They are <b>sections of a galaxy</b> and <b>can be placed anywhere inside of it</b>. They work for the purpose of <b>easing object placement around a Galaxy</b> using an offset respect to the Galaxy origin. They also work for optimization purposes (loading/unloading objects, at least that's what I believe).</p>
      
      <p>A <b>Scenario</b> is a combination of <b>Zones</b> and <b>Layers</b> with a <b>Star</b> that can be collected normally (end of the level) or when meeting a specific condition. It is basically <b>a level/mission on a Galaxy</b>. Their names are by default written in japanese but you can use latin characters to name them as well.</p>

      <br>

			<hr id="steps">
			<h2>Steps</h2>
			<hr>

      <p>First you need to know the <b>Zones</b> your <b>target Galaxy</b> has. If we take for example the <b>Comet Observatory</b> Galaxy, the <b>Zones</b> the galaxy has by default are <b>2</b>, as follows (<b>Fig. 1a</b>)</p>
        
<pre style="background-color: white; width: 33%; margin-left: 33%; border: calc(0.2vw) solid black; border-radius: calc(0.3vw);">
                               
   <b>Galaxy:</b>
     Comet Observatory
       <b>Zones:</b>
          AstroGalaxy
          TridentZone
             
</pre>

      <img src="../../images/lc1/fig1a.jpg" alt="Image could not be loaded.">
      <p class="idtext">(Fig. 1a - Comet Observatory opened in Whitehole)</p>
      <br>
      
      <p>Each <b>Zone</b> has its own group of <b>Layers</b> available. By default, both <b>Zones</b> (<b>AstroGalaxy</b> and <b>TridentZone</b>), have the following <b>Layers</b> assigned <b>under the first Scenario of the Galaxy</b>, "天文台第一状態" (<b>Fig. 1b</b>):</p>
        
<pre style="background-color: white; width: 33%; margin-left: 33%; border: calc(0.2vw) solid black; border-radius: calc(0.3vw);">
                               
   <b>Galaxy:</b>
     Comet Observatory
       <b>Zones:</b>
          AstroGalaxy
            <b>Layers:</b>
              Common
              LayerC
              LayerD
              LayerE
          TridentZone
            <b>Layers:</b>
              Common
             
</pre>

      <img src="../../images/lc1/fig1b.jpg" alt="Image could not be loaded.">
      <p class="idtext">(Fig. 1b - Layers of each Zone for Scenario 1 in Comet Observatory)</p>
      <br>
      
      <hr>
      <p><b>NOTE 1:</b> the "Common" layer is a <b>default layer</b> present in all <b>Zones</b>.</p>
      <hr>
      
      <br>
      
      <p>Across <b>Scenarios</b> you can see that the <b>AstroGalaxy Zone</b> already includes a few <b>Layers</b> on it (<b>Figs. 2, 3, 4 and 5</b>) by default it has <code>LayerA</code>, <code>LayerB</code>, <code>LayerC</code>, <code>LayerD</code>, <code>LayerE</code>, <code>LayerF</code>, <code>LayerG</code>, and <code>LayerH</code>.</p>

      <img src="../../images/lc1/fig2.jpg" alt="Image could not be loaded.">
      <p class="idtext">(Fig. 2 - Layers of AstroGalaxy Zone for Scenario 2)</p>
      <br>

      <img src="../../images/lc1/fig3.jpg" alt="Image could not be loaded.">
      <p class="idtext">(Fig. 3 - Layers of AstroGalaxy Zone for Scenario 3)</p>
      <br>

      <img src="../../images/lc1/fig4.jpg" alt="Image could not be loaded.">
      <p class="idtext">(Fig. 4 - Layers of AstroGalaxy Zone for Scenario 4)</p>
      <br>

      <img src="../../images/lc1/fig5.jpg" alt="Image could not be loaded.">
      <p class="idtext">(Fig. 5 - Layers of AstroGalaxy Zone for Scenario 5)</p>
      <br>
      
      <p>To add a <b>new Layer</b> to this <b>Zone</b>, for example <code>LayerI</code>, open the file <code>AstroGalaxy.arc</code> located in the <code>StageData</code> folder with <b>WiiExplorer</b> and open the <code>jmp</code> folder (<b>Fig. 6</b>).</p>

      <img src="../../images/lc1/fig6.jpg" alt="Image could not be loaded.">
      <p class="idtext">(Fig. 6 - Layers of AstroGalaxy Zone for Scenario 5)</p>
      <br>

      <hr>
      <p><b>NOTE 2:</b> <code>[Some Name]Galaxy.arc</code> <b>ARC files</b> contain configurations of the <code>[Some Name]</code> <b>Galaxy</b>.</p>

      <p><b>NOTE 3:</b> <code>[Some Name]Zone.arc</code> <b>ARC files</b> contain configurations of the <code>[Some Name]</code> <b>Zone</b>.</p>
      <hr>
      
      <br>
      
      <p>Then, <b>create an empty folder</b> called <code>layeri</code> inside the <code>Debug</code>, <code>GeneralPos</code>, <code>MapParts</code>, <code>Placement</code> and <code>Start</code> folders (<b>Right click on folder > Create Empty Folder</b> - <b>Fig. 7</b>). After that, <b>save the file</b> (<code>File > Save</code>) and close the program.</p>

      <img src="../../images/lc1/fig7.jpg" alt="Image could not be loaded.">
      <p class="idtext">(Fig. 7 - <code>layeri</code> folder added to <code>AstroGalaxy.arc</code> file)</p>
      <br>
      
      <p>Now open <b>Whitehole for SMG1</b> and open the <b>Comet Observatory Scenario</b> (<b>Fig. 8</b>). Then, in the window that opens, select an <b>Scenario</b> to use <code>LayerI</code> and then go to <code>File > Save</code> (I checked it for the <b>first Scenario</b>, "天文台第一状態" - <b>Fig. 9</b>). You can now close <b>Whitehole for SMG1</b>.</p>

      <img src="../../images/lc1/fig8.jpg" alt="Image could not be loaded.">
      <p class="idtext">(Fig. 8 - Opening Whitehole for SMG1's Scenario editor for Comet Observatory)</p>
      <br>

      <img src="../../images/lc1/fig9.jpg" alt="Image could not be loaded.">
      <p class="idtext">(Fig. 9 - Adding <code>LayerI</code> to AstroGalaxy Zone for Scenario 1)</p>
      <br>
      
      <hr>
      <p><b>NOTE 4:</b> <code>[Some Name]Scenario.arc</code> <b>ARC files</b> contain the <b>Scenario data</b> of the <code>[Some Name]</code> <b>Galaxy</b>. These kind of files are always inside a folder named <code>[Some Name]</code> in the <code>StageData</code> folder.</p>

      <p><b>NOTE 5:</b> In this case, <code>AstroGalaxy</code> is itself the name of a <b>Zone</b> and a <b>Galaxy</b> in SMG1. <b>All Galaxies</b> will have a <b>Zone</b> named exactly as the Galaxy. In that case, that <b>Zone</b> is the <b>main Zone</b> of the Galaxy.</p>

      <p><b>NOTE 6:</b> The only <b>Scenario editor</b> available for SMG1 is on <b>Whitehole for SMG1</b>. <b>Scenaristar</b> does not work with SMG1.</p>
      <hr>
      
      <br>
      
      <p>Open the <b>Comet Observatory Galaxy</b> on <b>Whitehole</b>, you should see that for the <b>Zone</b> we edited (<code>AstroGalaxy</code>) there is an option for the <code>LayerI</code> <b>Layer</b> on the <b>Zone</b> (<b>Fig. 10</b>).</p>

      <img src="../../images/lc1/fig10.jpg" alt="Image could not be loaded.">
      <p class="idtext">(Fig. 10 - <code>LayerI</code> added to the AstroGalaxy Zone for Scenario 1)</p>
      <br>

      <p>This will allow you to <b>add objects</b> to <code>LayerI</code> on the <b>AstroGalaxy Zone</b> in the <b>first Scenario</b> of the <b>Comet Observatory Galaxy</b>.</p>
      
      <br>
      
      <hr>
      <p><b>NOTE 7:</b> Now that you know how to <b>add Layers</b> (to a <b>Zone</b> on a <b>Scenario</b> of a <b>Galaxy</b>) you can apply the same principle to <b>delete/edit</b> them. Remember to use <b>WiiExplorer</b> and <b>Whitehole for SMG1</b>!</p>
      <hr>
      
      <br>

		</div>

	</body>

</html>
